package com.lh.java.basic.paragrame;

public class TestString extends cc{

	/**
	 * 功能描述  
	 * @Author: lh  2013-3-19 下午02:38:48
	 */
	public static void main(String[] args) {	
	new TestString().method();
}
public void method() {
	System.err.println(super.getClass());
System.err.println(super.getClass().getName());
System.out.println("haha");
System.err.println(this.getClass().getSuperclass());
System.err.println(this.getClass().getSuperclass().getName());
String str1 = new String("abc");
String str2 = new String("abc");
System.err.println(str1.equals(str2));
StringBuffer sb1 = new StringBuffer("abc");
StringBuffer sb2 = new StringBuffer("abc");
System.err.println(sb1.equals(sb2));
}


}
class cc{
	
}
